package com.jiefeng.dao;


import com.jiefeng.manager.queryRequest.MerchantRequest;
import com.jiefeng.manager.table.MerchantInfo;

import java.util.List;

public interface MerchantMapper {

    /**
     * 按照商户号删除
     */
    int deleteByMerchantId(String merchantId);

    /**
     * 按照商户号 查询商户
     */
    public MerchantInfo getByMerchantId(String merchantId);

    /**
     * 新增商户
     *
     * @param merchantInfo
     */
    public int insert(MerchantInfo merchantInfo);


    /**
     * 修改商户
     *
     * @param merchantInfo
     */
    public int update(MerchantInfo merchantInfo);

    /**
     * 查询商户
     */
    public MerchantInfo get(MerchantRequest merchantInfo);

    int getCount(MerchantRequest merchantInfo);

    public List<MerchantInfo> getListByPage(MerchantRequest merchantRequest);

}